import 'package:boss/models/store_table.dart';
import 'package:json_annotation/json_annotation.dart';

part 'store_area.g.dart';

@JsonSerializable(explicitToJson: true)
class StoreArea {
  StoreArea();

  int areaId;
  String areaName;
  int storeId;
  int userId;
  String ctime;
  String utime;
  int tableNum;
  @JsonKey(defaultValue: [])
  List<StoreTable> storeTableList;
  @JsonKey(defaultValue: false)
  bool isSelected;

  factory StoreArea.fromJson(Map<String, dynamic> json) => _$StoreAreaFromJson(json);

  Map<String, dynamic> toJson() => _$StoreAreaToJson(this);
}
